package com.lei.sqlJsp.service;

import java.util.List;

import com.lei.sqlJsp.entity.GoodsEntity;
import com.lei.sqlJsp.entity.Page;


public interface GoodsService {
	void add(GoodsEntity shopName);

	void delete(Long id);

	void update(GoodsEntity id);

	List<GoodsEntity> list();
	/**
	 * 分页
	 * @param currentPage 当前页
	 * @param pageSize 每页多少条数据
	 * @return 分类
	 */
	Page<GoodsEntity> page(int currentPage,int pageSize);

	GoodsEntity getById(Long id);
}
